﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Modules.zoo.ui {
    import flash.display.*;
    import flash.utils.*;
    import Display.DialogUI.*;
    import Classes.*;
    import Classes.util.*;

    public class ZooDialog extends GenericDialog {

        public static var assetDict:Dictionary = new Dictionary();

        private var m_spawner:MechanicMapResource;

        public function ZooDialog(_arg1:MechanicMapResource){
            this.m_spawner = _arg1;
            super("", "", 0, null, "ZooDialog");
        }
        override protected function getAssetDependencies():Array{
            return ([DelayedAssetLoader.ZOO_ASSETS, DelayedAssetLoader.MARKET_ASSETS]);
        }
        override protected function createAssetDict():Dictionary{
            var _local1:Object = m_assetDependencies[DelayedAssetLoader.ZOO_ASSETS];
            assetDict["spawner"] = this.m_spawner;
            assetDict["dialog_bg"] = (new _local1.dialog_bg() as DisplayObject);
            assetDict["market_bg"] = (new _local1.market_bg() as DisplayObject);
            assetDict["tab_unselected"] = _local1.tab_unselected;
            assetDict["tab_selected"] = _local1.tab_selected;
            assetDict["left_button_over"] = _local1.left_button_over;
            assetDict["left_button_tab"] = _local1.left_button_tab;
            assetDict["left_button_up"] = _local1.left_button_up;
            assetDict["right_button_tab"] = _local1.right_arrow_tab;
            assetDict["right_button_over"] = _local1.right_button_over;
            assetDict["right_button_up"] = _local1.right_button_up;
            assetDict["speech_bubble"] = _local1.speech_bubble;
            assetDict["enclosure_box"] = _local1.enclosure_box;
            assetDict["enclosure_close_btn_over"] = _local1.enclosure_close_btn_over;
            assetDict["enclosure_close_btn_up"] = _local1.enclosure_close_btn_up;
            assetDict["tab_locked"] = _local1.tab_locked;
            var _local2:Object = m_assetDependencies[DelayedAssetLoader.MARKET_ASSETS];
            assetDict["card_available_unselected"] = _local2.slices_card_inactive;
            assetDict["card_available_selected"] = _local2.slices_card_active;
            assetDict["icon_cash"] = _local2.cash;
            assetDict["counter_active"] = _local2.slices_counter_active;
            assetDict["counter_inactive"] = _local2.slices_counter_inactive;
            return (assetDict);
        }
        override protected function createDialogView(_arg1:Dictionary):GenericDialogView{
            return (new ZooDialogView(_arg1, m_message, m_title, m_type, m_callback, (this.m_spawner as ZooEnclosure)));
        }

    }
}//package Modules.zoo.ui 
